package com;

import java.util.Scanner;

public class Demo01 {
    public static void main(String[]args){
        Scanner sc = new Scanner (System.in);
        int []arr={19,28,37,46,50 };
        System.out.println("输入查询的数据");
        int i = sc.nextInt();
        int index=-1;
        for (int j = 0; j <arr.length ; j++) {
            if(i==arr[j]){
                index = j;
                break;
            }
        }
        System.out.println(index);
    }
}
